import java.util.concurrent.ConcurrentHashMap;

public class TestConcurrentHashMap {


    public static void main(String[] args) {
        ConcurrentHashMap<Integer, Integer> objectObjectConcurrentHashMap = new ConcurrentHashMap<>();
        for (int i = 0; i < 20; i++) {
            objectObjectConcurrentHashMap.put(i, i);
        }

        System.out.println(1 << 30);
        System.out.println(12 + (12 >>> 1) + 1);
        System.out.println(tableSizeFor(10 + (10 >>> 1) + 1));
        System.out.println();

        int n= 256;
        System.out.println(n >>> 3);
        System.out.println((2 > 1) ? (n >>> 3) / 2 : n);
    }

    private static final int tableSizeFor(int c) {
        int n = c - 1;
        n |= n >>> 1;
        n |= n >>> 2;
        n |= n >>> 4;
        n |= n >>> 8;
        n |= n >>> 16;
        return (n < 0) ? 1 : (n >= 1 << 30) ? 1 << 30 : n + 1;
    }
}
